package br.uff.gdse.positionevaluation.entity;

import java.util.Arrays;

import br.uff.gdse.positionevaluation.queries.XMLQuery;


public class Result {
	
	private XMLQuery XMLQuery;
	private double[] responseTimes;
	
	public Result(double[] responseTimes, XMLQuery XMLQuery) {
		this.responseTimes = responseTimes;
		this.XMLQuery = XMLQuery;
	}

	public double[] getResponseTimes() {
		return responseTimes;
	}
	
	public double[] getResponseTimesExceptFirst() {
		double[] responseTimesExceptFirst = Arrays.copyOfRange(responseTimes, 1, responseTimes.length);
		return responseTimesExceptFirst;
	}

	public void setResponseTimes(double[] responseTimes) {
		this.responseTimes = responseTimes;
	}

	public XMLQuery getXMLQuery() {
		return XMLQuery;
	}

	public void setXMLQuery(XMLQuery XMLQuery) {
		this.XMLQuery = XMLQuery;
	}
}
